<?php 

	 
	  
		foreach($result as $items)
		  {
		//   echo "<form action='../updateEquip?sKey=".$sKey."' method='POST'>";
		   echo Form::open(array('action'=>'apicommbe/updateEquip?sKey='.$sKey,'method'=>'POST'));
		   
		  //echo "<label>ID</label> <input name='e_id' readonly='readonly' value=".$items['id']."></input></br>";
		  //echo "<label>Equipment Name</label> <input name='e_name' value=".$items['name']."></input></br>";
		  
		  echo Form::label('Equipment Name');
		  echo Form::input('e_name',$items['name'],array('style'=>'position:relative;width:250px'));	
		  echo '</br>';		  
		  echo '</br>';		  
		   
		  //echo "<label>Equipment ID</label> <input name='e_equip_id' value=".$items['equipment_id']."></input></br>";
		  
		  echo Form::label('Equipment ID');
		  echo Form::input('e_equip_id',$items['equipment_id'],array('disabled'=>'disabled','style'=>'position:relative;width:100px'));
		  		  echo '</br>';
		  echo '</br>';
		  
		  //echo "<label>Description</label> <input name='e_desc' value=".$items['description']."></input></br>";
		  
		  echo Form::label('Product Description');
		  echo '</br>';
		  echo Form::textarea('e_desc',$items['description']);		  
		  echo '</br>';
		  		  echo '</br>';
		  echo "<button class='medium red'> Commit Changes </button>";
		  
		  
		  echo '</br>';
		  echo Form::close();
		  
		  print ("<form action='../deleteEquip/".$items['id']."/".$sKey."'><button class='small red'>Delete</button></form>");
		  
		  }

?>